/* Default font settings.
   The font-size percentage is of 16px. (0.75 * 16px = 12px) */
body {
  font-family: Helvetica Neue, Helvetica, Microsoft YaHei, Arial, sans-serif;
  font-size: 75%;
  line-height: 1.5;
}

/* Tables still need 'cellspacing="0"' in the markup. */
table {
  width: 100%;
}

caption,
th,
td {
  font-weight: normal;
}

/* Remove possible quote marks (") from <q>, <blockquote>. */
blockquote,
q {
  quotes: "" "";

  &:before,
  &:after {
    content: "";
  }
}

/* Remove annoying border on linked images. */
a img {
  border: none;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
}

h1 {
  margin-bottom: 0.5em;
  font-size: 3em;
  line-height: 1.5;
}

h2 {
  margin-bottom: 0.75em;
  font-size: 2em;
  line-height: 1.25;
}

h3 {
  font-size: 1.5em;
  line-height: 1.25;
}

h4 {
  margin-bottom: 1.25em;
  font-size: 1.2em;
  line-height: 1.25;
}

h5 {
  margin-bottom: 1.5em;
  font-size: 1em;
}

h6 {
  font-size: 1em;
}

/* Text elements */
p {
  margin: 0 0 1.5em;

  img.left {
    float: left;
    padding: 0;
    margin: 1.5em 1.5em 1.5em 0;
  }

  img.right {
    float: right;
    margin: 1.5em 0 1.5em 1.5em;
  }
}

a,
.lnk {
  text-decoration: none;
  cursor: pointer;
  outline: 0;
}

a:focus,
a:hover,
.lnk:focus,
.lnk:hover {
  text-decoration: underline;
}

blockquote {
  margin: 1.5em;
  font-style: italic;
  color: $g6;
}

sup,
sub {
  padding: 0 3px;
  line-height: 0;
  color: $f90;
}

abbr,
acronym {
  border-bottom: 1px dotted $g6;
}

address {
  margin: 0 0 1.5em;
  font-style: italic;
}

pre,
code {
  margin: 1.5em 0;
  white-space: pre;
}

pre,
code,
tt {
  font: 1em 'andale mono', 'lucida console', monospace;
  line-height: 1.5;
}

textarea {
  font-size: 1em;
}

/* text align */
//= 文本对齐:右对齐
.t-r {
  text-align: right !important;
}

//= 文本对齐:左对齐
.t-l {
  text-align: left !important;
}

//= 文本对齐:居中对齐
.t-c {
  text-align: center !important;
}

/* font size and color */
//= 字体大小
@each $v in 9 10 11 12 14 16 18 20 {
  .font#{$v}px,
  .f-#{$v} {
    font-size: #{$v}px;
  }
}

//= 价格样式
.price1 {
  font-size: 16px;
  font-weight: bold;
  color: $f60;
}

//= 市场价样式
.mktprice1 {
  font-size: 11px;
  color: $g9;
  text-decoration: line-through;
}

//= 节省样式
.saveprice1 {
  font-size: 11px;
  color: $f90;
}

/* font color */
//= 字体颜色:红;

.font-red,
.c-red,
.red {
  color: $f30;
}

//= 字体颜色:绿;

.fontcolorGreen,
.c-green {
  color: #608800;
}

//= 字体颜色:橙;

.font-orange,
.c-orange {
  color: $f60;
}

//= 字体颜色:黑;

.fontcolorBlack,
.c-black {
  color: $g0;
}

//= 字体颜色:灰;

.font-gray,
.c-gray {
  color: #7b7b7b;
}

//= 字体颜色:蓝;

.font-blue,
.c-blue {
  color: $_369;
}

//= 字体颜色:被禁止的;

.c-disabled {
  color: $_8b;
}

/* font total */
//= 总价
.amount {
  font: 700 16px Verdana, Geneva, sans-serif;
  color: $f30;
}

//= 价格
.price0 {
  font: 700 16px Verdana, Geneva, sans-serif;
  color: $f60;
}

/* background */
//= 背景：红
.ColColorRed,
.b-red {
  background: #fbeeef;
}

//= 背景：灰
.ColColorGray,
.b-gray {
  background: $ef;
}

//= 背景：黑灰
.ColColorGraydark,
.b-dark {
  background: $ef;
}

//= 背景：绿
.ColColorGreen,
.b-green {
  background: #eefbee;
}

//= 背景：蓝
.ColColorBlue,
.b-blue {
  background: #eef4fb;
}

//= 背景：橙
.ColColorOrange,
.b-orange {
  background: #fbf7ee;
}

//= 背景：白
.ColColorWhite,
.b-white {
  background: $gf;
}

/* Lists */

dl {
  margin: 0 0 1.5em 0;
}

dt {
  font-weight: bold;
}

dd {
  margin-left: 1.5em;
}

/* Tables */
caption {
  background: $ge;
}

tr.current td {
  color: $gf;
  background: #3366cc;
}

tr.selected td,
div.selected {
  background: $ffc;
}

th {
  font-size: 14px;
  text-align: left;
}

.table-responsive {
  min-height: 0.01%;
  overflow-x: auto;
}

.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  border-spacing: 0;
  border-collapse: collapse;
  background-color: transparent;

  > {
    // thead > tr > th,
    tbody > tr > th,
    tfoot > tr > th,
    // thead > tr > td,
    tbody > tr > td,
    tfoot > tr > td {
      border-top: 1px solid #f4f4f4;
    }

    thead > tr > {
      td,
      th {
        padding: 8px;
        line-height: 1.42857143;
        // vertical-align: top;
        border-top: 1px solid #eeeeee;
      }
    }

    tbody > tr > {
      td,
      th {
        padding: 8px;
        line-height: 1.42857143;
        vertical-align: top;
        // border-top: 1px solid #ddd;

        label {
          line-height: 290%;
        }
      }
    }

    tfoot > tr > {
      td,
      th {
        padding: 8px;
        line-height: 1.42857143;
        vertical-align: top;
        border-top: 1px solid #dddddd;
      }
    }
  }
}

/* Misc classes */
//= 小字体
.small {
  margin-bottom: 1.875em;
  font-size: 0.8em;
  line-height: 1.875em;
}

//= 大字体
.large {
  margin-bottom: 1.25em;
  font-size: 1.2em;
  line-height: 2.5em;
}

//= 隐藏
.hide {
  display: none !important;
}

//= 显示
.db {
  display: block;
}

//= 高亮
.highlight {
  background-color: #fefc2c;
}

//= 增加
.added {
  color: $gf;
  background: $_060;
}

//= 删除
.removed {
  color: $gf;
  background: $_900;
}

//= 第一个（块元素）
.first {
  margin-left: 0;
  border: none;
}

//= 左浮动
.fl,
.flt {
  float: left !important;
}

//= 右浮动
.fr,
.frt {
  float: right !important;
}

//= 还原浮动
.fno {
  float: none;
}

//= 外边距10px
.m10 {
  margin: 10px;
}

//= 外边距5px
.m5 {
  margin: 5px;
}

/* Columns */

/* Sets up basic grid floating and margin. */
//= 通用列样式
.col {
  float: left;
  margin-right: 10px;
  overflow: hidden;
}

@for $i from 0 through 24 {
  @if $i == 0 {
    $i: auto;
  }

  //= 通用列样式
  .span-#{$i} {
    @extend .col;
  }
}

/* Use these classes to set the width of a column. */
@for $i from 1 through 24 {
  //= 通用列样式
  .span-#{$i} {
    width: 40px * $i - 10px;

    @if $i == 24 {
      margin-right: 0;
    }
  }
}

/* vertical-align and position */
//= 垂直对齐方式：居中
.vm {
  vertical-align: middle;
}

//= 垂直对齐方式：顶端
.vt {
  vertical-align: top;
}

//= 垂直对齐方式：底部
.vb {
  vertical-align: bottom;
}

//= 相对定位
.pr {
  position: relative;
}

//= 绝对定位
.pa {
  position: absolute;
}

//= 缩放（针对ie）
.zoom {
  *zoom: 1;
}

/* The last column in a row needs this class. */
//= 最后一列/行
div.last {
  margin-right: 0;
  border: none;
}

//= 操作项
.opt {
  display: block;
  padding: 3px 0;
  text-align: center;
}

/* Add these to a column to append empty cols. */
@for $i from 1 through 23 {
  //= 960 grid 布局
  .append-#{$i} {
    padding-right: 40px * $i;
  }
}

/* Add these to a column to prepend empty cols. */
@for $i from 1 through 23 {
  //= 960 grid 布局
  .prepend-#{$i} {
    padding-left: 40px * $i;
  }
}

/* Border on right hand side of a column. */
//= 通用边线样式
.border {
  padding-right: 4px;
  margin-right: 5px;
  border-right: 1px solid $ge;
}

/* Border with more whitespace, spans one column. */
//= 通用列右边线
.colborder {
  padding-right: 24px;
  margin-right: 25px;
  border-right: 1px solid $ge;
}

/* Use these classes on an element to push it into the
next column, or to pull it into the previous column.  */
//= 960 grid 布局
.pull-auto {
  position: relative;
  float: left;
}

@for $i from 1 through 24 {
  .pull-#{$i} {
    margin-left: -40px * $i;

    @extend .pull-auto;
  }
}

//= 960 grid 布局
.push-auto {
  position: relative;
  float: right;
}

@for $i from 1 through 24 {
  .push-#{$i} {
    margin: 0 (-40px * $i) 1.5em (40px * $i);

    @extend .push-auto;
  }
}

/* Misc classes and elements */

/* In case you need to add a gutter above/below an element */
//= 960 grid 布局
.prepend-top {
  margin-top: 1.5em;
}

//= 960 grid 布局
.append-bottom {
  margin-bottom: 1.5em;
}

/* Use this to create a horizontal ruler across a column. */
//= 水平线样式
hr {
  float: none;
  width: 100%;
  height: 0.1em;
  margin: 0 0 1.45em;
  clear: both;
  color: $gd;
  background: $gd;
  border: none;
}

//= 用于清除浮动元素
.clearfix {
  @include clear(fix);
}

/* Regular clearing
   apply to column that should drop below previous ones. */
.clear {
  clear: both;
}

/* Success, notice and error boxes */
//= 通用提醒样式
.error,
.notice,
.note,
.success {
  padding: 10px 15px;
  margin-bottom: 1em;
  font-size: 1em;
  border: 1px solid $gd;

  .imgbundle {
    margin: -2px 2px 0 0;
    vertical-align: middle;
  }
}

//= 通用错误样式
.error {
  color: #8a1f11;
  background-color: #fbe3e4;
  border-color: #fbc2c4;

  a {
    color: #8a1f11;
  }
}

//= 通用提醒
.notice {
  color: #514721;
  background-color: #fcf8e3;

  a {
    color: #514721;
  }
}

//= 通用成功
.success {
  color: #264409;
  background-color: #edffcf;
  border-color: #c6d880;

  a {
    color: #264409;
  }
}

//= 通用普通消息
.note {
  z-index: 9999;
  padding: 10px 20px;
  color: $g9;
  background-color: $e6;
  border: 0;

  // @include box-shadow(0 0 5px rgba(0,0,0,0.5));

  a {
    color: $g0;
  }
}

//= 通用普通消息
.note-info {
  padding: 0.3em 0.8em;
  margin: 40px 15px;
  color: $g6;
  text-align: center;
  background-color: $ef;
  border-color: $gc;
}

//= 通用行内提醒
.notice-inline {
  padding-left: 5px;
  margin-left: 10px;
  color: $g6;
  white-space: nowrap;
  background-repeat: no-repeat;
}

//= 通用行内提醒图标
.notice-inline-icon {
  padding-left: 15px;
  margin-left: 5px;
  font-size: 12px;
  font-weight: normal;
  color: $g6;
}

//= 通用错误图标
.error-icon {
  padding-top: 15px;
  padding-left: 60px;
  color: $g3;

  h2 {
    margin: 0 0 0.3em;
    font-size: 1.1em;
    color: #8a1f11;
  }

  p {
    margin: 0 0 0.3em;
  }

  ul {
    padding: 0.5em 1em;
  }
}

.t2t {
  font-family: Arial, sans-serif;
  font-size: 1.2em;
  color: $g0;
  background: $gf;

  h1 {
    padding: 20px 0;
  }

  h1,
  h2,
  h3,
  h4,
  h5 {
    text-shadow: 1px 1px 1px $ga;
  }

  pre,
  code {
    font-family: 'Andale Mono', 'Lucida Console', Monaco, fixed, monospace;
    font-size: 11px;
  }

  pre {
    padding: 10px;
    white-space: pre;
    background: $f0;
    border: 1px solid $gc;
  }

  code {
    color: $_009;
  }

  table {
    border: 1px solid $g6;
  }

  th {
    font-weight: bold;
    background: $gc;
  }
}

.lead {
  margin-bottom: 20px;
  font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}
